#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
#define pii pair<int,int>
#define fi first
#define se second
int n;
const int N=1e5+5;
int a[N];
multiset<int> all;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
        scanf("%d",&a[i]);
        all.insert(a[i]);
    }
    sort(a+1,a+1+n);
    int ans=n;
    for(int i=1;i<=n;i++){
        auto it=all.lower_bound(a[i]+1);
        if(it==all.end()){
            break;
        }
        ans--;
        all.erase(it);
    }
    printf("%d",ans);
    return 0;
}